/*
 * Conf.h
 *
 *  Created on: Aug 12, 2016
 *      Author: ubuntu
 */

#ifndef CONF_H_
#define CONF_H_



#include "DBPool.h"
#include <time.h>
#include "DBManager.h"

typedef struct {
	char *path;
	char *dbname;
	char *dbhost;
	char *dbpub;
	char *dbpass;
	char *dbuser;
	char *zbname;
	int dbport;
	DBPool *cpool;
	time_t start;
	time_t mtime;
	int m_n900_version;
	int m_g2o_version;
	char *g2o_file;
	char *n900_file;
	char *unix_path;
	DBManager *pManager;
} Conf;

Conf *getConf();

void SetConf(const char *filename);

const char *ConfFile();

void ConfInit();

void ReadConf();

time_t get_start();

time_t get_mtime();

int get_n900_version();

int get_g2o_version();

char *get_n900_file();

char *get_g2o_file();

#endif /* CONF_H_ */
